home *** CD-ROM | disk | FTP | other *** search
-
- gif2png (version 0.5 beta)
-
- Copyright (C) 1995 Alexander Lehmann
-
- This software is provided 'as-is', without any express or implied
- warranty. In no event will the authors be held liable for any damages
- arising from the use of this software.
-
- Permission is granted to anyone to use this software for any purpose,
- including commercial applications (see below), and to alter it and
- redistribute it freely, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
- 4. Binary only distributions of the software must include the file README
- with the copyright statement. You are welcome to add a copyright
- statement for your modifications and a contact address, though.
-
- Note that this program uses the LZW decompression algorithm, which due to
- patent claims probably requires you to license if you use the algorithm
- in a commercial program or distribute this program on a for-profit basis.
- (See http://www.unisys.com)
-
- Part of this program (gifread.c) carries the following copyright:
-
- /* +-------------------------------------------------------------------+ */
- /* | Copyright 1990 - 1994, David Koblas. (koblas@netcom.com) | */
- /* | Permission to use, copy, modify, and distribute this software | */
- /* | and its documentation for any purpose and without fee is hereby | */
- /* | granted, provided that the above copyright notice appear in all | */
- /* | copies and that both that copyright notice and this permission | */
- /* | notice appear in supporting documentation. This software is | */
- /* | provided "as is" without express or implied warranty. | */
- /* +-------------------------------------------------------------------+ */
-
- (This file was taken from the Moasic 2.5 distribution, so another copyright
- may apply, but I haven't received any reply from NCSA yet)
-
- Part of the program (437_l1.c) was generated by trans100 written by Kosta
- Kostis <kosta@live.robin.de>.
- This package (great source for character conversion tables) is available as
- ftp://ftp.uni-erlangen.de:pub/doc/ISO/charsets/transXXX.tar.gz, where XXX is
- replaced by a version number.
-
- The png sample library is Copyright (c) 1995 Guy Eric Schalnat, Group 42, Inc.
- and is available from ftp://ftp.uu.net/graphics/png/code/pnglib*.zip
-
- The zlib compression library is Copyright (C) 1995 Jean-loup Gailly and Mark
- Adler and is available from ftp://ftp.uu.net/graphics/png/code/zlib-*.tar.gz
-
- The PNG specification is Copyright 1995, Thomas Boutell and is available
- from ftp://ftp.uu.net/graphics/png/documents. Obviously without the PNG effort
- this program wouldn't have been possible (or even conceivable).
-
- The Graphics Interchange Format(c) is the Copyright property of
- CompuServe Incorporated. GIF(sm) is a Service Mark property of
- CompuServe Incorporated.
-
- The GIF spec is available from any SimTel mirror as msdos/gif/gif89a.zip,
- e.g. on oak.oakland.edu.
-
- ------------------------------------------------------------------------------
-
- OK, now that we got this ground covered, we switch to more `normal' tone:
-
- If you are reading this, you have received gif2png either in source or
- precompiled binary form. If you want to compile the program yourself, see
- the file COMPILING.
-
- Note that this program is considered a beta version, it has performed
- satisfactory for me and is fairly complete, though there may be a few bits
- missing. However, with the diversity of computer systems out there, you
- may run into problems both when compiling and running the program.
- If you are converting your GIF collection, you should take care to verify
- that the conversion was successful with any PNG reading program, e.g. QPV.
- The delete option is currently disabled.
-
- The usage of the program is as follows:
-
- gif2png [ -dhi ] [file[.gif]] ...
- -d delete source GIF files after successful conversion
- -i create interlaced PNG files
- -h create histogram chunks for color files
-
- if no source files are listed, stdin is converted to noname.png
- (may not work on non-unix machines)
-
- The program will try to preserve the information contained in a GIF file as
- close as possible, including comments, application data. Plain text extensions
- are currently not supported, however this will probably be fixed in a future
- version of the program. If a multi-image GIF is encountered, multiple PNG
- files are created, names file.png, file.p01, file.p02 etc.
-
- Please note that the executables identify themselves as version 0.5, I
- currently don't have access to a DOS machine to recompile them. The changes
- 0.5->0.51 were relevant to the Borland-C version only and were mostly cosmetic.
-
- Alexander Lehmann <alex@hal.rhein-main.de>
-
- ------------------------------------------------------------------------------
-
- Special notes for gif2png compiled with djgpp (DOS/386)
-
- For MSDOS and similar systems, there are two versions of gif2png available.
-
- gif2png.exe is compiled as a `normal' DOS executable without support for XMS
- or EMS or anything and should be used if either you are using a 286 or the
- 386 version is not working correctly.
-
- gif2png3.exe is compiled as go32 (386 protected mode) executable and works only
- on machines with at least a 386sx. This version supports virtual memory
- management provided by djgpp.
-
- Alexander Lehmann <alex@hal.rhein-main.de>
-
- ------------------------------------------------------------------------------
-
- The following notes are from Oliver Fromme, author of QPV (not of gif2png).
-
- I decided to put only the 286 version of gif2png.exe into the QPV/386
- distribution package. The main reason is because it has less than half
- the size of the 386 (djgpp) version, and the QPV/386 distribution package
- is already pretty big.
-
- Note that the 286 version works as well as the 386 version, it's just
- somewhat slower. It is strongly recommended to use a disk cache (for
- example SmartDrv or HyperDsk) with write-back or staged-writing feature
- which greatly enhances the performance of gif2png.
-
- However, if you want to use the faster 386 version, you can get it from
- a large number of Internet FTP sites and BBS systems. If you are unable
- to find it, please contact the author (Alexander Lehmann) or me (Oliver
- Fromme).
-
- Note that QPV/386 displays PNG files faster than GIF files. However,
- interlaced PNG files are quite slow (I'll try to improve that), so I
- recommend not to use the -i option of gif2png, unless you really need to
- have interlaced PNG files. Also note that interlaced PNG files don't
- compress as well as normal PNG files (but still better than GIF in most
- cases).
-
- Some more words about compression: I used gif2png on a very large number
- of GIF files (several thousands). The size improvements ranged from 10
- to 40 percent, the average improvement was 18 percent (i.e. it saved me
- 18 Mb of 100 Mb). I never experienced a lock-up or something like that;
- gif2png runs very stable. All of the resulting images can be read by
- QPV/386 without any problems.
-
- I encourage everybody to switch from GIF to the superior PNG format
- which has been announced by CompuServe as the official successor of GIF.
- Note that PNG does not try to replace JPEG, since JPEG is lossy, and
- PNG is not. Therefore PNG can not compress as well as JPEG, but it is
- a hell of a lot better than GIF. The number of programs that support
- the PNG format is growing amazingly fast, and the death of GIF is near.
-
- Thank you for your kind attention.
-
- Oliver Fromme <fromme@rz.tu-clausthal.de>
-
- ------
-